package com.shy.service.impl;

import com.shy.service.IShapeService;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Service
@Order(2)
public class TriangleService implements IShapeService {
    @Override
    public Float getArea(Float width, Float height) {
        return 0.5f * width * height;
    }
}
